/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 *
 * @format
 */
import React from 'react';
import {NavigationContainer} from '@react-navigation/native';
import {ThemeContextProvider} from './src/components/ThemeContextProvider';
import StackNavigator from './src/router/StackNavigator';
import {SafeAreaProvider} from 'react-native-safe-area-context';
import {Provider} from 'react-redux';
import store from './src/store';
import 'react-native-gesture-handler';
import {navigationRef} from './src/utils/rootNavigation';
import { RootSiblingParent } from 'react-native-root-siblings';
function App(): JSX.Element {
  return (
    <SafeAreaProvider>
      <RootSiblingParent>
      <Provider store={store}>
        <ThemeContextProvider>
          <NavigationContainer ref={navigationRef}>
            <StackNavigator></StackNavigator>
          </NavigationContainer>
        </ThemeContextProvider>
      </Provider>
      </RootSiblingParent>
    </SafeAreaProvider>
  );
}

export default App;
